﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;

using Microsoft.VisualStudio.Shell;

using Epic.ComponentServices;

namespace KyuuBackground
{
    [PackageRegistration(UseManagedResourcesOnly = true)]
    [Guid("38d5234d-0c6c-4bda-a84b-2f11036b219c")]
    [ProvideOptionPage(typeof(KyuuBackgroundOptionPage), "KyuuBackground", "KyuuBackground Options", 1001, 1002, true)]
    public sealed class KyuuBackgroundPackage : Package
    {
        protected override void Initialize()
        {
            RegisterExpandableAttributeProvider(typeof(KyuuBackgroundOptionPage));

            base.Initialize();
        }

        private void RegisterExpandableAttributeProvider(Type type)
        {
            TypeDescriptor.AddProvider(new ExpandableAttributeProvider(TypeDescriptor.GetProvider(type)), type);
        }


    }
}
